package com.qf.efserver.user.personaldata.task;

import com.qf.common.core.entity.Users;
import com.qf.common.core.utils.TokenUtils;
import com.qf.efserver.user.personaldata.service.UsersService;
import com.qf.efserver.user.personaldata.service.UsersWeightService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * ---做一个内核强大的人---
 *
 * @author HuaZi
 * @date 2024/11/14
 * @desc 希望我们都能遇到真诚的人
 */
@Component
public class UpdateWeightTask {
    @Resource
    private UsersWeightService usersWeightService;
    @Resource
    private UsersService usersService;
    @XxlJob("updateWeight")
    public void updateWeight(){
        usersWeightService.updateWeight();
    }
}
